<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    

<script src="./5-promise.js"></script>
<script>

let p1 = new Promise((resolve,reject)=>{// excutor执行器函数
    console.log( '执行器函数...' );
    console.log( resolve );// 函数
    console.log( reject );// 函数
})

console.log( p1.then );
console.log( p1.catch );
console.log( Promise.resolve );
console.log( Promise.reject );

</script>
</body>
</html>